import request from '@/utils/request'

// 查询需求进度列表
export function listShedule(query) {
  return request({
    url: '/project/shedule/list',
    method: 'get',
    params: query
  })
}

// 查询需求进度详细
export function getShedule(taskId) {
  return request({
    url: '/project/shedule/' + taskId,
    method: 'get'
  })
}

// 新增需求进度
export function addShedule(data) {
  return request({
    url: '/project/shedule',
    method: 'post',
    data: data
  })
}

// 修改需求进度
export function updateShedule(data) {
  return request({
    url: '/project/shedule',
    method: 'put',
    data: data
  })
}

// 删除需求进度
export function delShedule(taskId) {
  return request({
    url: '/project/shedule/' + taskId,
    method: 'delete'
  })
}
